<template>
    <div class="child-2">
        <p>in child2:</p>
        <p>props: {{ pChild2 }}</p>
        <p>$attrs: {{ $attrs }}</p>
        <hr />
    </div>
</template>
<script>
export default {
    props: ["pChild2"],
    data() {
        return {};
    },
    inject: ['c2'],
    inheritAttrs: false,
    mounted() {
        // console.log(this.$attrs);
        // console.log(this.$listeners);
        console.log(this.c2('c2'));
        this.$emit("test2");
    },
};
</script>
